package org.dlust.config;

import org.dlust.aspect.LogAspects;
import org.dlust.entity.Calculator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class MainConfig {
  @Bean
  public Calculator calculator() {
    return new Calculator();
  }

  @Bean
  public LogAspects logAspects() {
    return new LogAspects();
  }
}
